#!/bin/bash

files=$(ls *.[ch])
declare -i sum=0
for file in $files
do
	declare -i lines=`cat $file | wc -l`;
#	echo 'In File '$file': '$lines
	sum=$sum+$lines
	
done	
echo "Total Lines: "$sum
